Repository navigation
media: i2c: ov13858: add DT support, reset GPIO, and usable gain minimums - #207
Open
robertijtsma wants to merge 2 commits into
Open
robertijtsma wants to merge 2 commits into
robertijtsma wants to merge 2 commits into
Conversation
Add Devicetree binding schema for the OmniVision OV13858 13 MP MIPI CSI-2 CMOS image sensor (used as the rear camera on Microsoft Surface Pro X). Signed-off-by: robertijtsma <37256770+robertijtsma@users.noreply.github.com>
…mums Enable Device Tree probing (ovti,ov13858) for the rear 13 MP OV13858 sensor on Microsoft Surface Pro X (SC8180X / SQ2): - Add of_match_table for "ovti,ov13858", optional reset-gpios deassertion, and external clock enable/disable with proper error unwind and post-reset settle delay. - Set non-zero 1x minimum analog/digital gain (0x80 / 0x400) and usable defaults so libcamera/V4L2 streams do not start at zero gain. Tested on Microsoft Surface Pro X SQ2 (SC8180X, Linux 7.3.1-1-surface). Signed-off-by: robertijtsma <37256770+robertijtsma@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Companion sensor PR to #206 enabling Device Tree bring-up of the rear 13 MP OmniVision OV13858 camera on Microsoft Surface Pro X (SC8180X / SQ2):
dt-bindings: media: i2c: add OmniVision OV13858Documentation/devicetree/bindings/media/i2c/ovti,ov13858.yaml.media: i2c: ov13858: add DT support, reset GPIO, and usable gain minimumsof_match_tablefor"ovti,ov13858".reset-gpiosdeassertion andclk_prepare_enable()/clk_disable_unprepare()with clean error-path unwinding and 5 ms post-reset settle delay.0(pitch black) to1x(0x80/0x400) with sensible defaults.V4L2_CID_HFLIP/V4L2_CID_VFLIPare intentionally omitted here since they are already queued upstream for v7.4 / media: backport the IPU6 ov5693 clock-lane gate and ov13858 flip controls from v7.4-rc1 #193.)Verification
ov13858.kocompiled cleanly withW=1against Linux7.3.1-1-surface(0 errors, 0 warnings)../scripts/checkpatch.pl --no-tree: 0 errors, 0 code style warnings.SC8180X, rear 13 MP camera on CCI0 bus 0 @0x10, 4-lane CSIPHY2) with libcamera + PipeWire.